// DSH表格
export interface Api<T> {
  code: number
  data: T
  msg: string
}
// 表格数据
export interface dshData<T> {
  list: T
  page: number
  pageSize: number
  total: number
}

export interface dshList {
  ordersStatus: string
  orderNumber: string
  processStatus: string
  processStatusList: zhuangtai[]
  percentage?: number
  creationDate: any
  warehouseNumber: string
  unit: string
  number: string
  id: number
}
export interface zhuangtai {
  text: string
  id: number
  isShow: boolean
}

// 表头数据类型
export interface dshDataHeader {
  lable: string
  property: string
  isShow: boolean
  render?: any
}
//

// 动态表格和表单的数据
export interface selectObject {
  typeOfContainerGoods: everyOption[]
  ordertype: everyOption[]
  businessType: everyOption[]
}
export interface everyOption {
  id: number
  name: string
  roleType: string
}
export interface GoodsList {
  id: number
  specificationOfPacking: string
  nameOfGoods: string
  material: string
  quantity: string
  unitPrice: string
  totalPrice: string
  basicInfoId?: any
  createTime?: any
  updateTime?: any
  isDelete?: any
  grossWeight: string // 毛重
  volume: string // 体积
  packingSize: string // 包装尺寸
}

// 树形表格类型
export interface treeTableList {
  id: string
  name: string
  pidname: string
  children: treeTableData[]
}

export interface treeTableData {
  id: string
  name: string
  pidname: string
}

/**
 * @param 通过树形结构查询表单数据
 * @param treeDataListOne 表单数据的第一层
 * @param DatalistDetail  表单树形结构的细节
 * @param treeUserDetail  表单树形结构的用户细节
 * @param treeUserDetailAge  表单树形结构的用户年龄
 */

export interface treeDataListOne {
  datalist: DatalistDetail[]
  pageNum: number
  pageSize: number
  total: number
}

export interface DatalistDetail {
  id: string
  username: string
  gender: number
  user: treeUserDetail
  idCard: string
  email: string
  address: string
  createTime: string
  status: number
  avatar: string
  area: string
  department: string
}

export interface treeUserDetail {
  detail: treeUserDetailAge
}

export interface treeUserDetailAge {
  age: number
}
